package cn.edu.qzuie.artist.module.td.controller.admin.school.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.edu.qzuie.artist.framework.excel.core.annotations.DictFormat;
import cn.edu.qzuie.artist.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 学校 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SchoolRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "学校名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "泉州信息工程学院")
    @ExcelProperty("学校名称")
    private String schoolName;

    @Schema(description = "详细地址", example = "福建省泉州市博东路249号")
    @ExcelProperty("详细地址")
    private String address;

    @Schema(description = "学校介绍", example = "泉州信息工程学院介绍")
    @ExcelProperty("学校介绍")
    private String description;

    @Schema(description = "激活？", example = "false")
    @ExcelProperty(value = "激活？", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean enable;

    @Schema(description = "学校网站")
    @ExcelProperty("学校网站")
    private String webSite;

    @Schema(description = "LOGO")
    @ExcelProperty("LOGO")
    private String logo;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "地域编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1665")
    @ExcelProperty("地域编号")
    private Long regionId;

}